package cn.tedu.csms.product.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ProductSaveParam {
    @ApiModelProperty(value = "商品id")
    private  Long id;
    @ApiModelProperty(value = "商品名称")
    private String  goodsName;
    @ApiModelProperty(value = "产地")
    private  String origin;
    @ApiModelProperty(value = "产地类型")
    private  String typeOrigin;
    @ApiModelProperty(value = "销售价格")
    private BigDecimal price;


    @ApiModelProperty(value = "商品所属类别")
    private String goodsType;
    @ApiModelProperty(value = "图片地址")
    private  String imgUrl;

    @ApiModelProperty(value = "商品等级")
    private  String goodsGrad;
    @ApiModelProperty(value = "商品规格")
    private  String specification;
    @ApiModelProperty(value = "描述")
    private  String comments;

    @ApiModelProperty(value = "库存storageId")
    private  Long storageId;
//    @ApiModelProperty(value = "商品goodsId")
//    private  Long goodsId;
    @ApiModelProperty(value = "店铺id")
    private  Long shopId;
    @ApiModelProperty(value = "库存量")
    private  Long storage;
    @ApiModelProperty(value = "销量")
    private  Long sales;
    @ApiModelProperty(value = "生产日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;

    @ApiModelProperty(value = "保质时长 天")
    private  String warrantyPeriod;

    @ApiModelProperty(value = "存储模式")
    private  String storageMode;
    @ApiModelProperty(value = "销售单位")
    private  String salesUnit;





}
